<html>
<head>
</head>
<body>
<div class="page-container">
    <div class="page-content">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                              <span class="caption-subject font-green-sharp bold uppercase">
                              <i class="fa fa-gift"></i> 修改人员信息
                              </span>
                            </div>
                        </div>
                        <div class="portlet-body form">
                            <form action="javascript:;" id="updateForm" class="form-horizontal">
                                <div class="form-body">
                                    <div class="row">
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-4 col-xs-4 control-label">员工工号：</label>
                                            <div class="col-md-8 col-sm-8 col-xs-8">
                                                <div class="input-icon right">
                                                    <i class="fa"></i>
                                                    <input class="form-control" type="text" id="userId"
                                                           placeholder="请输入员工工号" name="userId" value="${thisUser.user_id}" readonly/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-4 col-xs-4 control-label">员工姓名：</label>
                                            <div class="col-md-8 col-sm-8 col-xs-8">
                                                <div class="input-icon right">
                                                    <i class="fa"></i>
                                                    <input class="form-control" type="text" id="userName"
                                                           placeholder="请输入员工姓名" name="userName" value="${thisUser.user_name}">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-4 col-xs-4 control-label">员工性别：</label>
                                            <div class="col-md-8 col-sm-8 col-xs-8">
                                                <div class="input-icon right">
                                                    <i class="fa"></i>
                                                    <input  type="radio" class="radio-inline" name="sex"  value="M">男
                                                    <input  type="radio" class="radio-inline" name="sex"  value="W">女
                                                    <input id="oldSex" class="hidden" value="${thisUser.sex}"/>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-4 col-xs-4 control-label">联系电话：</label>
                                            <div class="col-md-8 col-sm-8 col-xs-8">
                                                <div class="input-icon right">
                                                    <i class="fa"></i>
                                                    <input class="form-control" type="text" id="telephone"
                                                           placeholder="请输入联系电话" name="telephone" value="${thisUser.user_phone}">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="form-group">
                                            <label class="col-md-4 col-sm-4 col-xs-4 control-label">所属部门：</label>
                                            <div class="col-md-4 col-sm-4 col-xs-4">
                                                <select class="form-control" name="departId"
                                                        id="departId"  >
                                                    <option value="">请选择</option>
                                                    <option value="d1">财务部门</option>
                                                    <option value="d2">人事部门</option>
                                                    <option value="d3">执行部门一</option>
                                                    <option value="d4">执行部门二</option>
                                                </select>
                                                <input id="departIdHid" class="hidden" value="${thisUser.depart_id}"/>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="form-group">
                                            <label class="col-md-4 col-sm-4 col-xs-4 control-label">员工职能：</label>
                                            <div class="col-md-4 col-sm-4 col-xs-4">
                                                <select class="form-control" name="roleId"
                                                        id="roleId"  >
                                                    <option value="">请选择</option>
                                                    <option value="12">财务人员</option>
                                                    <option value="22">人事人员</option>
                                                    <option value="23">分部人事人员</option>
                                                    <option value="32">普通部员</option>
                                                <#if Session.loginUserRole =='21'>
                                                    <option value="11">财务部门经理</option>
                                                    <option value="21">人事部门经理</option>
                                                    <option value="31">执行部门经理</option>
                                                </#if>
                                                </select>
                                                <input id="roleIdHid" class="hidden" value="${thisUser.role_id}"/>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="text-right">
                                            <button type="button" class="btn green"
                                                    onclick="doUpd()">确认修改
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <script src="${basePath}/static/module/userManage/updUser.js${jsResourceVersion}"></script>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>